<h3>待办事项列表</h3>
<hr />
<input type="text" [(ngModel)]="event" placeholder="请输入" /><button (click)="addClick()">
  添加待办
</button>
<ol *ngIf="eventList.length > 0; else noEvent">
  <li *ngFor="let event of eventList; index as indey">
    <span>{{ event }}</span
    ><button (click)="deleteClick(indey)">删除</button>
  </li>
</ol>
<ng-template #noEvent>
  <br />
  <br />
  <span>暂无待办事项</span>
</ng-template>
